﻿#pragma once

#include "CheckModelListCtrl.h"
#include "CheckModelPropertyGridCtrl.h"

// CCheckModelLibraryDialog 对话框

class CCheckModelLibraryDialog : public CDialogEx
{
	DECLARE_DYNAMIC(CCheckModelLibraryDialog)

public:
	CCheckModelLibraryDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CCheckModelLibraryDialog();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_CHECK_MODEL_LIBRARY };
#endif

public:
	CCheckModelPropertyGridCtrl m_grid;
	CCheckModelListCtrl m_list;

	CImageList m_il;

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnCheckModelNew();
	afx_msg void OnCheckModelRemove();
	afx_msg void OnCheckModelUpdate();

	afx_msg void OnNMClickListModel(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnCheckModelEdit();
	afx_msg void OnUpdateCheckModelEdit(CCmdUI *pCmdUI);
};
